﻿using Ls.Utils;
using Ls.Web.Framework.Permissions;
using Microsoft.AspNetCore.Authorization;
using System;
using System.Collections.Generic;
using System.Text;

namespace Ls.Web.Framework.Jwt
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
    public class JwtAuthorizeAttribute: AuthorizeAttribute
    {
        public JwtAuthorizeAttribute()
        {
            var AuthenticationScheme = ConfigHelper.GetString("IdentityOptions:JwtSecurityToken:AuthenticationScheme");
            AuthenticationSchemes = AuthenticationScheme;
        }
    }
}
